package com.rtx.api.enums;

public enum FieldValidateType {

    ALL("ALL","所有操作需要验证"),
    INSERT("INSERT","写入时验证"),
    UPDATE("UPDATE","更新时验证"),
    DELETE("DELETE","删除时验证"),
    INSERT_UPDATE("INSERT_UPDATE","写入或更新时验证"),
    INSERT_DELETE("INSERT_DELETE","写入或删除时验证"),
    UPDATE_DELETE("UPDATE_DELETE","更新或删除时验证"),
    ;

    String type;

    String descr;

    FieldValidateType(String type, String descr){
        this.type = type;
        this.descr = descr;
    }

    public String getType() {
        return type;
    }

    public String getDescr() {
        return descr;
    }
}
